<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/component/common.jsp"%>
<%@ page language="java" import="java.util.*,java.io.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title></title>
   <%@include file="/WEB-INF/jsp/component/commonHead.jsp" %>
	<!-- theme1.0 css -->
	<link href="${theme}/style/checkdata.css" rel="stylesheet">
</head>
<body>
<!-- 人员信息内部内容 -->
	<div class="hd">
		<div class="back">
			<button onclick="goBack()"></button>
		</div>
		<div class="info">
			<div class="photo">
				<img src="${resultData.userImage}" height="99%" width="99%"/>
			</div>
			<p style="margin:0px;">
				<span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：${resultData.patientName}</span>
				<span  class="sex">${resultData.sex}:${resultData.age}</span>
				<span>档案编号:${resultData.mkExamCode}</span>
			</p>
			<p style="margin:0px;">
				<span>身份证号：${resultData.idCard}</span>
				<span>卡号：${resultData.medicalCardNum}</span>
			</p>
		</div>
     <div class="menu">
		<button class="last" onclick="showDetail(1)">体检数据</button>
		<button class="last" onclick="showDetail(2)">健康调查</button>
		<button class="act" onclick="showDetail(3)">体检报告</button>
		<button class="last" onclick="showDetail(4)">用药建议</button>
	</div>
	</div>
<div class="cl"></div>


<object data=" ${filePath }" type="application/pdf" width="1000" height="1000">    
   
</object> 
<%@include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
	<!-- DataTables JavaScript -->
	<script src="${js}/jquery.twbsPagination.min.js"></script>
	<script src="${theme}/js/data.js" type="text/javascript"></script>
	<script>
		$(document).ready(function() {
			$("#jktj").click();
		});

		function showDetail(obj){
			var idCard = "${resultData.idCard}";
			var mkCode = "${resultData.mkExamCode}";
			var pMenuId = "${pMenuId}";
			if(obj==1){
				var url = "${ctx}/Exam/showDetail?idCard="+idCard+"&mkCode="+mkCode+"&pMenuId="+pMenuId;
			}else if(obj==3){
			  var url = "${ctx}/app/HealthReport/createReport?mkCode="+mkCode+"&idCard="+idCard+"&pMenuId="+pMenuId;
			}else if(obj==2){
			  var url = "${ctx}/healthSurvey/searchSurvey?mkCode="+mkCode+"&idCard="+idCard+"&pMenuId="+pMenuId;
			}else{
				url = "#";
			}
			window.location.href = url;
		}
		function goBack(){
			var card="${resultData.idCard}";
			var pMenuId = "${pMenuId}";
			var url = "#";
			if(pMenuId=="examReports"){
				url = "${ctx}/HealthReport/init?obj=list";
			}else if(pMenuId=="examPatients"){
			   url = "${ctx}/Exam/init?obj=exams1&idCard="+card;
			}else{
			   url = "${ctx}/Exam/init?obj=exams1&idCard="+card;
			}
			window.location.href = url;
		}
	</script>
</body>
</html>